package com.net355.eblog.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.net355.eblog.util.ExecuteResult;


/**
 * 公共模块
 * 
 * @author ray
 */
@Controller
public class CommonController extends BaseController {
//	private static Log LOG = LogFactory.getLog(CommonController.class);


	@RequestMapping("/common/relogin")
	public @ResponseBody
	ExecuteResult reLogin() {
		return new ExecuteResult(false, "登陆已失效，请重新登录！");
	}

	@RequestMapping("/common/noprivilege")
	public @ResponseBody
	ExecuteResult noprivilege() {
		return new ExecuteResult(false, "您暂无此权限，请联系管理员！");
	}

	@RequestMapping(value="/test")
	public ModelAndView getTestPage(ModelAndView mav) {
		mav.setViewName("/test.html");
		return mav;
	}
	
	
}